home *** CD-ROM | disk | FTP | other *** search
- Path: mongol.sasknet.sk.ca!news@mongol.sasknet.sk.ca
- From: psc1@mailhost.sasknet.sk.ca (Dave Goertz)
- Newsgroups: comp.lang.c++
- Subject: Borlands Container Classes
- Date: 25 Mar 1996 18:54:36 GMT
- Organization: Your Organization
- Message-ID: <4j6q5c$jl3@mongol.sasknet.sk.ca>
- NNTP-Posting-Host: nomad40.sasknet.sk.ca
- Mime-Version: 1.0
- X-Newsreader: WinVN 0.99.2
-
- This is probably an easy question but... I want to put one of my own
- classes in a TIArrayAsVector. Everything goes well until link time when
- it gives me the error "Illegal structure operation in function
- TMICVectorImp<MyClass,TStandardAllocator>::Find(const MyClass *) cont".
- The code it dies on is:
-
- if( Data[loc] &&
- *STATIC_CAST(T *,STATIC_CAST(void *,Data[loc])) == *t )
- return loc;
-
- I'm not sure whats going on, I am passing a pointer as this is an
- indirect vector array.
-
- Anybody please, the documentation for the type cast *STATIC_CAST is
- strange.
-
- Dave.
-
-